Skip to content

use metac_name for retrieving metaculus api tokens#252

Open
lsabor wants to merge 1 commit intomainfrom
quickfix/uniform-probability-bot-disabled
Open

use metac_name for retrieving metaculus api tokens#252
lsabor wants to merge 1 commit intomainfrom
quickfix/uniform-probability-bot-disabled

Conversation

@lsabor
Copy link
Copy Markdown
Contributor

@lsabor lsabor commented May 7, 2026

update runner to read metaculus token api keys from metac names instead of bot names

contains updates that were previously buried in #246

Copilot AI review requested due to automatic review settings May 7, 2026 21:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the reusable GitHub Actions bot launcher workflow to support looking up Metaculus API tokens by a separate Metaculus account name (metac_name) rather than by the internal bot_name, and wires this through for the uniform-probability bot in the AIB tournament workflow.

Changes:

  • Add optional metac_name input to run-bot-launcher and use it as the key when selecting a token from METACULUS_TOKENS.
  • Update the AIB tournament workflow to pass metac_name for the uniform-probability bot that uses the token-map secret.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/run-bot-launcher.yaml Adds metac_name input and switches token-map lookup key from bot_name to metac_name.
.github/workflows/run-bot-aib-tournament.yaml Passes metac_name for the uniform-probability bot invocation of the launcher workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 125 to 129
else
TOKEN=$(echo "$METACULUS_TOKENS" | jq -r --arg key "$BOT_NAME" '.[$key] // empty')
TOKEN=$(echo "$METACULUS_TOKENS" | jq -r --arg key "$METAC_NAME" '.[$key] // empty')
if [ -z "$TOKEN" ]; then
echo "ERROR: No token found for $BOT_NAME in METACULUS_TOKENS" >&2
echo "ERROR: No token found for $METAC_NAME in METACULUS_TOKENS" >&2
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants